/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ongclientejava;

import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Cristo Manuel
 */
public class ModeloTablaPersAsociado extends DefaultTableModel {
    
    @Override
public Class<?> getColumnClass(int columnIndex) {
        switch (columnIndex)
        {
            case 0:
                return Integer.class;
            case 1:
                return String.class;
            default:
                return Object.class;
        }
    }
    
    public void crear_modelo(){
        this.addColumn("E");
        this.addColumn("Nombre y Apellidos");

        
    }
    
}
